package com.toman.JavaBean;


import java.io.Serializable;

/**
 * @Author: shaojx
 * @Date: 2018/8/31 09:43
 * @Description:
 */

public class SendworkStaticsCount extends BaseCount  implements Serializable {
    private Long sendworkId;

    public SendworkStaticsCount() {
        fillAllZero();
    }

    @Override
    protected void fillNull2Zero() {
        super.fillNull2Zero();
    }

    @Override
    protected void fillAllZero() {
        super.fillAllZero();
    }

    public void addAllCount(ArleadyReceiveSendworkOrderCount arleadyReceiveSendworkOrderCount) {
        if (arleadyReceiveSendworkOrderCount.getCompletedCount() != null) {
            this.setCompletedCount(this.getCompletedCount()+arleadyReceiveSendworkOrderCount.getCompletedCount());
        }
        if (arleadyReceiveSendworkOrderCount.getQualifiedCount() != null) {
            this.setQualifiedCount(this.getQualifiedCount() + arleadyReceiveSendworkOrderCount.getQualifiedCount());
        }
        if (arleadyReceiveSendworkOrderCount.getReuseCount() != null) {
            this.setReuseCount(this.getReuseCount() + arleadyReceiveSendworkOrderCount.getReuseCount());
        }
        if (arleadyReceiveSendworkOrderCount.getRemakeCount() != null) {
            this.setRemakeCount(this.getRemakeCount() + arleadyReceiveSendworkOrderCount.getRemakeCount());
        }
        if (arleadyReceiveSendworkOrderCount.getWasteCount() != null) {
            this.setWasteCount(this.getWasteCount() + arleadyReceiveSendworkOrderCount.getWasteCount());
        }
        if (arleadyReceiveSendworkOrderCount.getScrappedCount() != null) {
            this.setScrappedCount(this.getScrappedCount() + arleadyReceiveSendworkOrderCount.getScrappedCount());
        }
    }
}
